import request from '@/utils/request'
import { ref } from 'vue'
export default () => {
	const employees = ref([])
	const employee = ref({})
	const getEmployees = async () => {
		let { data } = await request.get('mini/employee')
		employees.value = data
	}
	const showEmployee=async(id)=>{
		employee.value = await request.get(`mini/employee/${id}/one`)
	}
	return {
		getEmployees,
		employees,
		showEmployee,
		employee
	}
}